﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="SuaThongTinThanhVien.aspx.cs" Inherits="TLTuan.Home.SuaThongTinThanhVien" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Edit my profile</title>
    <style type="text/css">
    a
    {
        text-decoration: none;
    }
    #left
    {
        float: left;
        width: 300px;
        border-color: #CCCCCC;
        border-style: solid;
        border-width: 1px;
    }
    #right
    {
        margin-left: 5px;
        float: left;
        width: 648px;
        border-color: #CCCCCC;
        border-style: solid;
        border-width: 1px;
    }
    .Tilehead
    {
        height: 25px;
        background-color: #059;
        color: #fff;
        font-size: 18px;
        padding: 3px 0 0 5px;
        font-weight: bold;
        margin-bottom: 10px;
    }
    .boxcont {
    float: left;
    margin-bottom: 10px;
    padding: 5px;
    width: 288px;
    }
    .boxcont .cap {
        background: url("/Images/design/linenote.gif") repeat-x scroll 0 0 transparent;
        float: left;
        font-size: 11px;
        font-weight: 700;
        height: 15px;
        margin-bottom: 5px;
        width: 100%;
    }
    .boxcont .cap p {
        background: url("/Images/design/arr_cap.gif") no-repeat scroll 0 5px #FFFFFF;
        float: left;
        padding-left: 15px;
        padding-right: 5px;
        color: #0A5992;
        margin: 0 auto;
    }
        
    .listinfo {
        float: left;
        font-size: 11px;
        padding-left: 15px;
        width: 273px;
    }
    .listinfo li {
        border-bottom: 1px dotted #CCCCCC;
        float: left;
        margin-bottom: 5px;
        padding-bottom: 5px;
    }
    .listinfo li.end {
        border: 0 none;
    }
    .listinfo li .col1 {
        float: left;
        font-weight: 700;
        width: 105px;
    }
    .listinfo li .col2 {
        float: left;
        width: 160px;
    }
        
  .input
    {
        width: 100%;
        margin: 10px 0 0 50px;
        height: 22px;
        overflow: hidden;
    }
    .tile
    {
        width: 130px;
        float: left;   
    }
    
    .textbox
    {
        margin-left: 10px;
        float: left;
    }
    .button
    {        
        margin-top: 20px;
        padding-left: 190px;
    }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <div>
        <table bgcolor="white" width="950" border="1" align="center" cellpadding="0" cellspacing="0">
      <tr>
        <td align="center" bgcolor="#6666FF">
            <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"
                height="100" width="960">
                <param name="movie" value="Flash/test2.swf">
                <param name="quality" value="high">
                <embed height="100" pluginspage="http://www.macromedia.com/go/getflashplayer" quality="high"
                    src="/Images/0601.TS.swf" type="application/x-shockwave-flash" width="960"></embed>
            </object>
        </td>
      </tr>
      <tr>
        <td bgcolor="#99FF00"><table width="100%" border="0" cellpadding="5" cellspacing="0">
          <tr>
            <th><a href="Default.aspx">Home Page </a></th>
        <th><a href="Upload.aspx">Up load</a></th>
        <th><a href="">Admin</a></th>        
        <th><a href="">Mod</a></th>
        <th style="width: 60%;"></th>
            <th></th>
          </tr>
        </table></td>
      </tr>
      <tr>
        <td>        
                <% if (Request.QueryString["user"] == null)
                   {
                       Response.Redirect("../Home/Default.aspx");
                   }
                   else
                   {
                       TLTuan.App.AccessLayer.CDAOThanhVien dao_thanhvien = new TLTuan.App.AccessLayer.CDAOThanhVien();
                       TLTuan.App.TransferObj.CThanhVien m_thanhvien = dao_thanhvien.SelectOne(int.Parse(Request.QueryString["user"].ToString()));
                       if (m_thanhvien != null)
                       {
                    %>
              <div id="warpper">
                <div id="left">
                    <div class="Tilehead">Thông tin tài khoản
                    </div>
            	    <div class="boxcont">
	                  <div class="cap">
		                <p>Profile</p>
	                  </div>
	                  <ul class="listinfo">
		                <li>
		                  <div class="col1">Họ và tên: </div>
		                  <div class="col2"><%Response.Write(m_thanhvien.TenThanhVien); %></div>
		                </li>
		                <li>
		                  <div class="col1">Ngày sinh:</div>
		                  <div class="col2"><%Response.Write(string.Format("{0}", m_thanhvien.NgaySinh.ToShortDateString())); %></div>
		                </li>
		                <li>
		                  <div class="col1">Giới tính: </div>
		                  <div class="col2"><%Response.Write(m_thanhvien.GioiTinh==true ? "Nam" : "nữ"); %></div>
		                </li>
		                <li>
		                  <div class="col1">Điện thoại:</div>
		                  <div class="col2"><%Response.Write(m_thanhvien.Mobile); %></div>
		                </li>		            
		                <li class="end">
		                  <div class="col1">Email:</div>
		                  <div class="col2"><%Response.Write(m_thanhvien.Email); %></div>
		                </li>
                      </ul>
		              <div class="cap">
		                <p>Account</p>
	                  </div>
	                  <ul class="listinfo">
		                <li>
		                  <div class="col1">Tài khoản:</div>
		                  <div class="col2"><%Response.Write(m_thanhvien.TaiKhoan); %></div>
		                </li>
                        <li>
		                  <div class="col1">Ngày tham gia:</div>
		                  <div class="col2"><%Response.Write(string.Format("{0}", m_thanhvien.NgayThamGia.ToShortDateString())); %></div>
		                </li>
		                <li class="end">
		                  <div class="col1">Điểm:</div>
		                  <div class="col2"><%Response.Write(m_thanhvien.Diem.ToString()); %></div>
		                </li>
                        <li>
                        </li>
		                </ul>		          
	                </div>
                </div>
                <div id="right">
                    <div class="Tilehead">
                        Đăng ký thành viên
                    </div>
                    <div style="overflow: hidden">
                        <asp:Label ID="lab_thongbao" runat="server" Visible="False" Text="Label" 
                            ForeColor="Red"></asp:Label>
                    </div>  
                    <div class="input">
                       <div class="tile">Tên đăng nhập: </div><div class="textbox">
                        <asp:TextBox ID="txt_user" runat="server" Width="220px" Enabled="False"></asp:TextBox></div>
                        (*)</div>
                    <div class="input">
                       <div class="tile">Mật khẩu: </div><div class="textbox">
                        <asp:TextBox ID="txt_pass" runat="server" Width="220px" TextMode="Password"></asp:TextBox></div>
                        (*)</div>
                    <div class="input">
                       <div class="tile">Nhập lại mật khẩu: </div><div class="textbox">
                        <asp:TextBox ID="txt_pass2" runat="server" Width="220px" AccessKey="*" 
                            TextMode="Password"></asp:TextBox></div>
                        (*)</div>
                    <div class="input">
                       <div class="tile">Họ và tên: </div>
                       <div class="textbox"><asp:TextBox ID="txthoten" runat="server" Width="220px"></asp:TextBox></div>
                    </div>
                    <div class="input">
                       <div class="tile">Ngày sinh: </div>
                       <div class="textbox">
                            <asp:DropDownList ID="date" runat="server"></asp:DropDownList>
                            &nbsp;&nbsp;
                            <asp:DropDownList ID="month" runat="server"></asp:DropDownList>
                            &nbsp;&nbsp;
                            <asp:DropDownList ID="year" runat="server"></asp:DropDownList>
                       </div>
                    </div>
                    <div class="input">
                       <div class="tile">Giới tính: </div>
                        <div class="textbox">
                            <asp:RadioButtonList ID="rdl_gender_check" runat="server"                        
                                RepeatDirection="Horizontal" Width="167px">                
                                <asp:ListItem Selected="True" Value="Male">Nam</asp:ListItem>
                                <asp:ListItem Value="Female">Nữ</asp:ListItem>
                            </asp:RadioButtonList>
                        </div>  
                    </div>
                    <div class="input">
                       <div class="tile">Điện thoại: </div><div class="textbox"><asp:TextBox ID="txt_phone" runat="server" Width="220px"></asp:TextBox></div>
                    </div>
                    <div class="input">
                       <div class="tile">Email: </div><div class="textbox""><asp:TextBox ID="txt_email" runat="server" Width="220px"></asp:TextBox></div>
                    </div>
                    <div class="button">
                        <asp:Button ID="btt_dangky" runat="server" Text="Hoàn thành" onclick="btt_dangky_Click" />
                        &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                        <asp:Button ID="Btt_huy" runat="server" Text="Hủy" onclick="Btt_huy_Click"  />
                    </div>
                </div>
                </div>
                            <%
                               }
                               else Response.Redirect("../Home/Default.aspx");
                           }%>            
            </td>
            </tr>
            <tr>
            <td bgcolor="#CCFF00"><table border="0" align="center" cellpadding="5" cellspacing="0">
                <tr>
                <td align="center"><a href="">Home Page </a></td>
                <td align="center"><a href="">About Us </a></td>
                <td align="center"><a href="">Contact Us </a></td>
                <td align="center"><a href="">Feedback</a></td>
                <td align="center"><a href="">My Account </a></td>
                <td align="center"><a href="">Shopping Guide </a></td>
                </tr>
            </table></td>
            </tr>
        </table>
        </div>
    </form>
</body>
</html>
